/*
 * @Date: 2024-07-10 12:33:28
 * @Auth: 463997479@qq.com
 * @LastEditors: 463997479@qq.com
 * @LastEditTime: 2024-07-11 11:40:46
 * @FilePath: \react-oil-station-manage\src\services\login\loginForm.ts
 */
// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** 登录接口 POST /api/API/account */
export async function login(body: API.LoginParams, options?: { [key: string]: any }) {
  return request<API.Result>('/auth/login', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 发送验证码 POST /api/API/captcha */
export async function getCode(options?: { [key: string]: any }) {
  return request<API.Result>('/code', {
    method: 'GET',

    ...(options || {}),
  });
}
